package com.officegameapp.db.dao;

import com.officegameapp.db.implementation.hibernate.GameDAO;
import com.officegameapp.db.implementation.hibernate.GameTableDAO;
import com.officegameapp.db.implementation.hibernate.PlayerDAO;
import com.officegameapp.db.implementation.hibernate.TeamDAO;

public class MySqlDAOFactory extends DAOFactory {

	private IPlayerDAO playerDao;
	private IGameDAO gameDao;
	private ITeamDAO teamDao;
	private IGameTableDAO gameTableDao;
	
	public MySqlDAOFactory() {
		playerDao = new PlayerDAO();
		gameDao = new GameDAO();
		teamDao = new TeamDAO();
		gameTableDao = new GameTableDAO();
	}
	
	@Override
	public IPlayerDAO getPlayerDAO() {
		return playerDao;
	}

	@Override
	public ITeamDAO getTeamDAO() {
		return teamDao;
	}

	@Override
	public IGameDAO getGameDAO() {
		return gameDao;
	}

	@Override
	public IGameTableDAO getGameTableDAO() {
		return gameTableDao;
	}

}
